package view.windowBehavior;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import com.jtattoo.plaf.acryl.AcrylLookAndFeel;

public class AcrylLookAndFeelBehavior implements WindowBehavior {
	
	public AcrylLookAndFeelBehavior() {
		aplicarModelo();
	}

	@Override
	public void aplicarModelo() {
		try {
			
			AcrylLookAndFeel.setTheme("Green", "", "Central");
            
            // select the Look and Feel
            UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
			
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		}
	}

}
